<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s"  uri="/struts-tags"%>
<script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="js/default.js"></script>
 <div class="top">
 <div class="r"><a href="#">帮助</a>
 <s:if test="#session.user!=null">
 <a href="/wjifen/shoppingList">我的兑换车(<span><s:property value="#session.shoppingList.size" /></span>)</a>
 </s:if>
 </div>
 <s:if test="#session.user==null">
 <a href="javascript:void(showlogin())">登录</a>
 <a href="javascript:void(showreg())">注册</a>
 </s:if>
 <s:else>
 欢迎您，<s:property value="#session.user.name" />
 <a href="/wjifen/logout">退出</a>
 <a href="/wjifen/usercenter/usercenter" class="user">用户中心</a>
 </s:else>
 </div>
 
 <div class="inner">
   <h1 id="logo"><a href="#"></a></h1>
   <div id="search">
     <div class="tabs">
      <ul>
        <li tabindex="1" class="current">微一下</li>
        <li tabindex="2">微商城</li>
      </ul>
     </div>
     <form action="/wjifen/searchshops" method="post" style="display: inline;">
     <div class="bodycontent bodycontent1"><input name="keyWord" type="text" value="请输入微商家信息" onfocus="if(this.value == '请输入微商家信息') this.value = '';" onblur="if(this.value == '') this.value = '请输入微商家信息';" class="searchtxt" />
     <input  type="submit" class="searchbtn"  value="" />
     </div>
     </form>
     <form action="searchGifts" method="post" style="display: inline;">
     <div class="bodycontent bodycontent2 none"><input type="text" value="请输入商城礼品信息" onfocus="if(this.value == '请输入商城礼品信息') this.value = '';" onblur="if(this.value == '') this.value = '请输入商城礼品信息';" class="searchtxt" />
     <input type="button" class="searchbtn" value="" />
     </div>
     </form>
   </div>
 </div>
 <div id="nav">
   <ul>
     <li><a href="/wjifen" class="current">首&nbsp;页</a></li><li class="split"></li>
     <li><a href="/wjifen/listAllShops">微商家</a></li><li class="split"></li>
     <li><a href="/wjifen/listAllGifts">微商城</a></li><li class="split"></li>
     <li><a href="#">帮&nbsp;助</a></li>
   </ul>
 </div>
 <div id="reg" style="position: absolute; top: 110px;">
<form action="/wjifen/regist" method="post">
  <h3><a href="javascript:void(closereg())" class="close">关闭</a>用户注册</h3>
  <ul>
    <li><label>设置账户：</label><input type="text" name="registUser.name" class="text" value="可使用用户名、邮箱、昵称、手机登录" onfocus="if(this.value == '可使用用户名、邮箱、昵称、手机登录') this.value = '';" onblur="if(this.value == '') this.value = '可使用用户名、邮箱、昵称、手机登录';" /></li>
    <li><label>设置密码：</label><input type="password" name="registUser.password"  class="text text1" /></li>
    <li><label>确认密码：</label><input type="password" name="registUser.repassword" class="text text1" /></li>
    <li><label>手机绑定：</label><input type="text" name="registUser.telNum" class="text text1" />(选填)<input type="button" class="send" value="获取验证码" /></li>
    <li><label>输入验证码：</label><input type="text" name="registUser.code" class="text code" /></li>
     <li><label>邮箱：</label><input type="text" name="registUser.email"  class="text text1" /></li>
     <li><label>推荐人账户：</label><input type="text" name="registUser.recommender" class="text text1" />(选填)<a href="#">什么是推荐人?</a></li>
    <li class="li"><input type="checkbox" class="checkbox" /><a href="#">我已阅读什么协议</a></li>
    <li class="li"><input type="submit" class="btn" value="登录" /><input type="button" class="btn" value="取消" onclick="javascript:void(closereg())" /></li>
  </ul>
  </form>
</div>
<div id="login"  style="position: absolute; top: 110px;">
  <form action="/wjifen/login" method="post">
  <h3><a href="javascript:void(closelogin())" class="close">关闭</a>用户登录</h3>
  <ul>
    <li>账&nbsp;&nbsp;户：<input type="text" class="text" name="loginUser.Name" value="可使用用户名、邮箱、昵称、手机登录" onfocus="if(this.value == '可使用用户名、邮箱、昵称、手机登录') this.value = '';" onblur="if(this.value == '') this.value = '可使用用户名、邮箱、昵称、手机登录';" /></li>
    <li>密&nbsp;&nbsp;码：<input type="password" class="text text1" name="loginUser.password" /><a href="#">忘记密码？</a></li>
    <li>验证码：<input type="text" class="text code" name="loginUser.code" /></li>
    <li>验证图：<a href="#"><img src="code" id="safecode" onclick="changeValidateCode(this)" alt="验证码" title="" /></a><a href="#">看不清换一张</a></li>
    <li class="li"><input value="1" type="checkbox" name="loginUser.autoLogin" class="checkbox" />一个月内免登录</li>
    <li class="li"><input type="submit" class="btn" value="登录"  /><input type="button" class="btn" value="取消" onclick="javascript:void(closelogin())" /></li>
  </ul>
  </form>
</div>
